package br.albatroz.et;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="tb_jogador")
public final class Jogador extends AbstractEntity {
	
	@Column	(name="email", nullable=false)
	private String email;
	
	@Column (name="name", nullable=false)
	private String name;
	
	@Column (name="nickname")
	private String nickName;
	
	@Column (name="username", nullable=false)
	private String userName;
	
	@JoinColumn (nullable = true)
	@ManyToOne 
	private Time time;

	public Jogador(){
		super();
	}
	
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Time getTime() {
		return time;
	}

	public void setTime(Time time) {
		this.time = time;
	}
	
}
